package com.shun.service.impl;

import com.shun.dao.LyDao;
import com.shun.dao.UserDao;
import com.shun.pojo.Ly;
import com.shun.service.LyService;
import com.shun.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class LyServiceImpl implements LyService {
    SqlSession sqlSession = MyBatisUtils.getSqlSession();
    LyDao mapper = sqlSession.getMapper(LyDao.class);
    public List<Ly> selectAll() {
        List<Ly> list = mapper.selectAll();
        return list;
    }
}
